//
//  URLManger.h
//  LubanWork
//
//  Created by xiaohao on 2020/1/4.
//  Copyright © 2020 xiaohao. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface URLManger : NSObject
-(instancetype *)shareManger;
-(void)Post:(NSString *)url success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
-(void)Get:(NSString *)url success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
@end

NS_ASSUME_NONNULL_END
